<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>角色分配权限</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="../../../css/font.css">
    <link rel="stylesheet" href="../../../css/xadmin.css">
    <link rel="stylesheet" href="../../css/team/teamAssignStudent.css">
    <script src="../../js/common/jquery-3.5.1.js"></script>
    <script src="../../../lib/layui/layui.js"></script>
    <script src="../../../js/cookie.js"></script>
    <script src="../../../js/xadmin.js"></script>
    <script src="../../js/common/myAjax.js"></script>
    <script src="../../js/team/teamAssignStudent.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="../../js/common/html5.min.js"></script>
    <script src="../../js/common/respond.min.js"></script>
    <![endif]-->
</head>
<body class="xx">
<div class="x-box">
    <div class="assign" >
        <div>
            <div class="cc">
                <div class="aa">
                    <div><input type="checkbox" title="未分配成员" id="noStudent"></div>
                    <div>未分配成员</div>
                </div>
                <div id="noCount"></div>
            </div>
            <div class="serach">
<!--                <div>-->
<!--                    <input  type="text"  placeholder='请输入搜索内容' class="layui-input" id="noSerach">-->
<!--                </div>-->
                <div>
                    <div class="bb" id="no">

                    </div>
                </div>
            </div>
        </div>
        <div class="btn">
            <div class="layui-btn layui-btn layui-btn-xs" onclick="assignStudent()" >
                分配成员
            </div>
            <div class="layui-btn layui-btn layui-btn-xs" onclick="delStudent()" >
               移除成员
            </div>
<!--            <div class="layui-btn layui-btn layui-btn-xs" onclick="searchNoAssignStudent()" >-->
<!--                搜索未分配学员-->
<!--            </div>-->
<!--            <div class="layui-btn layui-btn layui-btn-xs" onclick="searchIsAssignStudent()" >-->
<!--                点击已分配学员-->
<!--            </div>-->
        </div>
        <div>
            <div class="cc">
                <div class="aa">
                    <div><input type="checkbox" title="当前小组成员" id="isStudent"></div>
                    <div>当前小组成员</div>
                </div>
                <div id="isCount"></div>
            </div>
            <div class="serach">
<!--                <div>-->
<!--                    <input type="text" placeholder='请输入搜索内容' class="layui-input" id="isSerach">-->
<!--                </div>-->
                <div>
                    <div class="bb" id="is">

                    </div>
                </div>
            </div>
        </div>

    </div>
    <div>

    </div>
</div>
<script>
    layui.use(['form','layer'], function(){
        $ = layui.jquery;
        var form = layui.form
            ,layer = layui.layer;

        //自定义验证规则
        form.verify({
            nikename: function(value){
                if(value.length < 5){
                    return '昵称至少得5个字符啊';
                }
            }
            ,pass: [/(.+){6,12}$/, '密码必须6到12位']
            ,repass: function(value){
                if($('#L_pass').val()!=$('#L_repass').val()){
                    return '两次密码不一致';
                }
            }
        });

        form.on('checkbox(father)', function(data){

            if(data.elem.checked){
                $(data.elem).parent().siblings('td').find('input').prop("checked", true);
                form.render();
            }else{
                $(data.elem).parent().siblings('td').find('input').prop("checked", false);
                form.render();
            }
        });


    });
</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>